package active.commond.concretecommond;

import active.commond.reciver.LightReciver;

public class LightOnCommond implements ICommond {

    LightReciver lightReciver;

    public LightOnCommond(LightReciver lightReciver) {
        this.lightReciver = lightReciver;
    }

    @Override
    public void execute() {
        lightReciver.on();
    }

    @Override
    public void undo() {
        lightReciver.off();
    }
}
